-- GENERATED SPELL FOR [Starving Mountain Lion] --


function spell0_2384(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16829,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2384', 691, 1)
end

function spell1_2384(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16830,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2384', 604, 1)
end

function spell2_2384(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1753,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2384', 0, 1)
end

function spell3_2384(pUnit, Event) --@Dash,Self--
pUnit:FullCastSpellOnTarget(61684,pUnit)
pUnit:RegisterEvent('Sorts_2384', 16000, 1)
end

function spell4_2384(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14917,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2384', 0, 1)
end

function spell5_2384(pUnit, Event) --@Prowl,Self--
pUnit:FullCastSpellOnTarget(24450,pUnit)
pUnit:RegisterEvent('Sorts_2384', 0, 1)
end

function spell6_2384(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(59882,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2384', 9000, 1)
end

function Sorts_2384(pUnit, Event)
local choix_sorts_2384 = math.random(0, 6)
if choix_sorts_2384 == 0 then
pUnit:RegisterEvent('spell0_2384', 1, 1)
end
if choix_sorts_2384 == 1 then
pUnit:RegisterEvent('spell1_2384', 1, 1)
end
if choix_sorts_2384 == 2 then
pUnit:RegisterEvent('spell2_2384', 1, 1)
end
if choix_sorts_2384 == 3 then
pUnit:RegisterEvent('spell3_2384', 1, 1)
end
if choix_sorts_2384 == 4 then
pUnit:RegisterEvent('spell4_2384', 1, 1)
end
if choix_sorts_2384 == 5 then
pUnit:RegisterEvent('spell5_2384', 1, 1)
end
if choix_sorts_2384 == 6 then
pUnit:RegisterEvent('spell6_2384', 1, 1)
end
end

function mob2384_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2384', math.random(1500, 3000), 1)
end

function mob2384_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2384_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2384_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2384, 1, 'mob2384_Action')
RegisterUnitEvent(2384, 2, 'mob2384_Leave')
RegisterUnitEvent(2384, 3, 'mob2384_Kill')
RegisterUnitEvent(2384, 4, 'mob2384_Die')
